#include<stdio.h>

int main(void)
{
    char s1[100];

    gets(s1);

    for (int i =0;s1[i] != '.';i++)
    {
        if (s1[i]  <= 'Z' && s1[i] >= 'A')
        {
            s1[i] = 'Z' + 'A'  - s1[i];
        }
        else if (s1[i]  <= 'z' && s1[i] >= 'a')
        {
            s1[i] = 'z' + 'a'  - s1[i];
        }
    }
    puts(s1);
    
}